package com.ib.review.repository;

import com.ib.review.pojo.dto.AnalyzeRecordQuery;
import com.ib.review.pojo.dto.AnalyzeResultParam;
import com.ib.review.pojo.dto.AnalyzeResultQuery;
import com.ib.review.pojo.po.AnalyzeRecordPO;
import com.ib.review.pojo.po.AnalyzeResultPO;

import java.time.LocalDateTime;
import java.util.List;

public interface ParsingRepository {

    void insertRecord(AnalyzeRecordPO po);

    List<AnalyzeRecordPO> selectByTimeRange(LocalDateTime localDateTime,String fileName,String userName);

    void deleteRecord(String recordId);

    List<AnalyzeResultPO> selectByRecordId(AnalyzeResultQuery analyzeResultQuery);

    void updateResult(AnalyzeResultParam analyzeResultParam);

    AnalyzeRecordPO queryRecordById(AnalyzeRecordQuery analyzeRecordQuery);

    Long queryResultCount(String recordId);

    Long queryRecordCount(String fileName, String admin);

    List<String> exportToExcel(String recordId);
}
